{% set setting = {title:'舍艺金牌经纪人',beforeLink:['/css/plugins/chosen/chosen.css']} %} {% include "./_partial/head.html" with setting %}
<style>

    ul.dropdown-menu >li >div {
        margin: 4px;
        padding: 3px 20px;
        line-height: 25px;
    }
    .dropdown-menu >li >div {
        cursor: pointer;
    }

    .update-dialog input[type="checkbox"],.update-dialog input[type="radio"] {
        position: absolute;
        left: -9999px;
    }

    .update-dialog input:checked + label {
        background-color: #1ab394;
        color: #fff;
    }

    .layui-layer-content .subBtn {
        font-weight: normal;
        margin: 0px 2px;
        padding: 10px 20px;
        border: 1px solid #e5e6e7;
        color: #333;
        background-color: #fff;
        white-space: nowrap;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-transition: background-color .2s;
        transition: background-color .2s;
        line-height:1;
    }
    .subTitle {
        border:0 none;
        font-weight:bold;
        font-size:14px;
        margin: 0;
        line-height:40px;
        background-color: transparent;
        float: left;
    }
    .plpr {
        padding:0 15px;
    }
    .handleRecordList p {
        line-height:40px;
    }
    .subTitle span {
        color: #1AB394;
        padding:0 10px 0 20px;
        font-size:24px;
        vertical-align: middle;
    }
    .noPadding {
        padding: 0;
    }
    .available {
        color: #1AB394;
    }
    .forbidden {
        color: #FF3399;
    }
    .dialogPageCenter{
        margin:20px auto 0;
        width: 80%;
    }
    .warnDanger {
        color: #ed5565;
    }
    .layui-layer-content input {
        height:34px;
        padding:0 15px;
        color: #212121;
    }
    .layui-layer-content label {
        margin:0;
        line-height:34px;
    }
</style>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        {% include "./_partial/nav-left.html" %} {% include "./_partial/nav-right.html" %}
    </div>

</body>
<script src="{{basePath}}/plugins/jquery.min.js"></script>
<script src="{{basePath}}/plugins/bootstrap.min.js"></script>
<script src="{{basePath}}/plugins/external.js"></script>
<script src="{{basePath}}/plugins/layer/layer.js"></script>
<script src="{{basePath}}/plugins/chosen/chosen.jquery.js"></script>
<script>

</script>
<script src="{{basePath}}/plugins/common.js"></script>

<script type="text/javascript">
$.ajaxSetup({
    headers: {
//        'Authorization': common.getToken(),
        'token': common.getToken()
    },
    cache: false,
    dataType:'json',
    beforeSend: function(xhr, request) {
        if (!request.data) {
            xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
            // request.contentType = "";

//            request.data = 'token=' + common.getToken();

            // 'token:' + common.getToken()
        } else {
//            request.data += '&token=' + common.getToken();
        }
        request.data= request.data.replace(/[\r\n]/g, '');
    },
    dataFilter: function (data) {
        /**
         * 过滤返回数据中的换行和回车。
         */
        var __data = "{}";
        if (!!data) {
            __data = data.replace(/[\r\n]/g, '');
        }
        if(-1 !== this.dataTypes.join("").indexOf("json")){

            var result = JSON.parse(__data);
            var msg = result["res"]["msg"];
//             如果返回值状态码是101或者102，代表token为空（101）或token验证失败（102），那么就弹窗给予提示，并清空缓存，将页面跳转到登录页
            if (result["code"] == 101 || result["code"] == 102) {
                layer.alert(msg,function () {
                    localStorage.clear();
                    location.href = './login.html';
                });
            }
        }
        return __data;
    }
})
</script>
<script src="{{basePath}}/plugins/enumJson.js"></script>
<script src="{{basePath}}/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="{{basePath}}/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="{{basePath}}/plugins/hplus.min.js"></script>
<script src="{{basePath}}/plugins/contabs.min.js"></script>
<script src="{{basePath}}/plugins/pace/pace.min.js"></script>

<script src="{{basePath}}/plugins/validate/jquery.validate.min.js"></script>
<script src="{{basePath}}/plugins/validate/messages_zh.min.js"></script>

<script src="{{basePath}}/js/index.js"></script>
</html>